From: Sebastian Keller Date: Tue, 21 Apr 2026 11:58:38 +0000 (+0200) Subject: autorunManager: Catch and log errors from mount-added handler X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~10^2^2~28 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b4baf208ac8cacb267123f1d8eff3a436bf87b3a;p=gnome-shell.git autorunManager: Catch and log errors from mount-added handler Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9183 Part-of: --- diff --git a/js/ui/components/autorunManager.js b/js/ui/components/autorunManager.js index 66c7d360a..547db805d 100644 --- a/js/ui/components/autorunManager.js +++ b/js/ui/components/autorunManager.js @@ -132,7 +132,8 @@ class AutorunManager { enable() { this._volumeMonitor.connectObject( - 'mount-added', this._onMountAdded.bind(this), + 'mount-added', + (monitor, mount) => this._onMountAdded(monitor, mount).catch(logError), 'mount-removed', this._onMountRemoved.bind(this), this); }